import axios from 'wxapi/axios.js'

const getCompanyList = data => {
	return axios({
		url: '/applet/company/list',
		method: 'get',
		params: data
	})
};
// 获取推荐列表
const getRecommendList = (newsId, rq, pageSize) => {
	return axios({
		url: '/applet/dataOfficer/list',
		method: 'get',
		params: {
			newsId, rq, pageSize
		}
	})
};
module.exports = {
	getCompanyList,
	// 获取公司动态详情
	getCompanyDetail: (data) => {
		return axios({
			url: '/applet/company/details',
			method: 'get',
			params: data
		})
	},
	getRecommendList,
	// 获取推荐详情
	getRecommendDetail: (data) => {
		return axios({
			url: '/applet/dataOfficer/details',
			method: 'get',
			params: data
		})
	},
	// 获取动态列表
	getTrendList: (data) => {
		return axios({
			url: '/applet/news/list',
			method: 'get',
			params: data
		})
	},
	// 获取动态详情
	getTrendDetail: (data) => {
		return axios({
			url: '/applet/news/details',
			method: 'get',
			params: data
		})
	},
	// 获取政策法规列表
	getPolicyList: (data) => {
		return axios({
			url: '/applet/policy/list',
			method: 'get',
			params: data
		})
	},
	// 获取政策法规详情
	getPolicyDetail: (data) => {
		return axios({
			url: '/applet/policy/details',
			method: 'get',
			params: data
		})
	},
	// 获取电影榜单
	getMovieList: (data) => {
		return axios({
			url: '/ranking/movie/list',
			method: 'get', 
			params: data,
		})
	},
	// 获取电视剧榜单
	getTeleplayList: (data) => {
		return axios({
			url: '/ranking/teleplay/list',
			method: 'get',
			params: data
		})
	},
	// 获取网剧榜单
	getNetworkList: (data) => {
		return axios({
			url: '/ranking/network/list',
			method: 'get',
			params: data
		})
	},
	// 获取艺人榜单-热搜 
	getArtistList: (data) => {
		return axios({
			url: '/ranking/artist/list',
			method: 'get',
			params: data,
		})
	},
	// 获取艺人榜单-作品影响力 -新增
	getArtistWorkInfluenceList: (data) => {
		return axios({
			url: '/ranking/artist/work/influence',
			method: 'get',
			params: data,
		})
	},
	// 获取院线票房整理统计
	getBoxofficeList: (data) => {
		return axios({
			url: '/film/supervise/boxoffice/list',
			method: 'get',
			params: data,
		})
	},
	// 获取电影排片-大盘
	getScheduleList: (data) => {
		return axios({
			url: '/film/supervise/schedule/list',
			method: 'get',
			params: data,
		})
	},
	// 获取电影排片-城市
	getScheduleCityList: (data) => {
		return axios({
			url: '/film/schedule/city/list',
			method: 'get',
			params: data,
		})
	},
	// 获取收视卫视
	getAudienceList: (data) => {
		return axios({
			url: '/teleplay/supervise/audience/list',
			method: 'get',
			params: data,
		})
	},
	// 获取网播平台
	getSummaryList: (data) => {
		return axios({
			url: '/network/supervise/summary/list',
			method: 'get',
			params: data,
		})
	},
	// 获取	电视剧、电影备案部数统计分析
	getPlanYearCountTotal: (data) => {
		return axios({
			url: '/supervise/plan/yearCountTotal',
			method: 'get',
			params: data,
		})
	},
	// 获取 电视剧、电影备案题材/地区/机构详情表格
	getPlanSummaryTable: (data) => {
		return axios({url: '/supervise/plan/summaryTable',method: 'get',params: data})
	},
	// 获取	电视剧、电影发行部数统计分析
	getReleaseYearCountTotal: (data) => {
		return axios({url: '/supervise/release/yearCountTotal',method: 'get',params: data})
	},
	// 获取 电视剧、电影发行题材/地区/机构详情表格
	getReleaseSummaryTable: (data) => {
		return axios({url: '/supervise/release/summaryTable',method: 'get',params: data})
	},
	// 获取 娱乐咨询 词云
	getEntertainmentHotspotsCloud: (data) => {
		return axios({url: 'https://antv.alipay.com/assets/data/f2/world-population.json',method: 'get',params: data})
	},
	// 获取 娱乐咨询 列表
	getEntertainmentHotspotsTable: (data) => {
		return axios({url: '/applet/hotspot/list',method: 'get',params: data})
	},
	// 获取 娱乐咨询 详情
	getEntertainmentHotspotsDetail: (data) => {
		return axios({url: '/applet/hotspot/details',method: 'get',params: data})
	},
	// 获取全文检索列表
	getSearchList: (data) => {
		return axios({url: '/search/common/listTable',method: 'get',params: data})
	},
	// 获取海报信息----弃用
	getPosterList: (data) => {
		return axios('/search/common/poster', 'get', data)
	},
	// 获取电影海报信息 -- 新增
	getFilmPosterList: (data) => {
		return axios({url: '/search/poster/film',method: 'get',params: data})
	},
	// 获取电视剧海报信息 -- 新增
	getTeleplayPosterList: (data) => {
		return axios({url: '/search/common/teleplay',method: 'get',params: data})
	},
	// 获取艺人海报信息
	getArtistPosterList: (data) => {
		return axios({url: '/search/common/artist/poster',method: 'get',params: data})
	},
	// 获取电影基本信息 -- 新增
	getFilmBaseInfo: (data) => {
		return axios({url: '/common/film/actor/list',method: 'get',params: data})
	},
	// 获取电视剧基本信息 -- 新增
	getTeleplayBaseInfo: (data) => {
		return axios({url: '/common/teleplay/actor/list',method: 'get',params: data})
	},
  
	// 获取艺人作品基础信息 ---- 在用
	getActorList: (data) => {
		return axios({url: '/common/artist/actor/list',method: 'get',params: data})
	},
	// 获取艺人合作关系 ---- 新增
	getArtistCooperList: (data) => {
		return axios({url: '/ranking/artist/cooperation/list',method: 'get',params: data})
	},
  
	// 获取电影制作公司-历史作品列表 -- 新增
	getMakeFilmHistoryList: (data) => {
		return axios({url: '/common/film/history',method: 'get',params: data})
	},
	// 获取电视剧制作公司-历史作品列表 -- 新增
	getMakeTeleplayHistoryList: (data) => {
		return axios({url: '/common/teleplay/history',method: 'get',params: data})
	},
	
	// 获取电影制作公司题材占比 -- 新增
	getFilmGenresRateList: (data) => {
		return axios({url: '/film/company/genres/rate',method: 'get',params: data})
	},
	// 获取电视剧制作公司题材占比 -- 新增
	getTeleplayGenresRateList: (data) => {
		return axios({url: '/teleplay/company/genres/rate',method: 'get',params: data})
	},
	// 获取电影院线票房 -总票房 -- 新增
	getFilmBoxofficeTotal: (data) => {
		return axios({url: '/film/boxoffice/total',method: 'get',params: data})
	},
	// 获取电影院线票房 -周票房 -- 新增
	getFilmBoxofficeWeekTotal: (data) => {
		return axios({url: '/film/boxoffice/week/total',method: 'get',params: data})
	},
	// 获取电影院线票房 -日票房 -- 新增
	getFilmBoxofficeDailyTotal: (data) => {
		return axios({url: '/film/boxoffice/daily/total',method: 'get',params: data})
	},
	// 获取电视剧收视卫视--最佳收视 --新增
	getGoodRatingTotal: (data) => {
		return axios({url: '/teleplay/good/rating/total',method: 'get',params: data})
	},
	// 获取电视剧收视卫视--收视排行 --新增
	getRankTopList: (data) => {
		return axios({url: '/teleplay/vision/rank/list',method: 'get',params: data})
	},
	// 获取电视剧收视卫视--播放情况 --新增
	getPlayDetailInfo: (data) => {
		return axios({url: '/teleplay/vision/play/detail',method: 'get',params: data})
	},
	// 获取收视率与市场份额对比
	getAudienceRateList: (data) => {
		return axios({url: '/common/audienceRate',method: 'get',params: data})
	},
	// 获取好评率
	getFeelbackRateList: (data) => {
		return axios({url: '/common/feedbackRate/details',method: 'get',params: data})
	},
	// 获取网络播放量
	getNetworkAmountList: (data) => {
		return axios({url: '/common/network/amount',method: 'get',params: data})
	},
	// 获取新媒体指数-电视剧媒体关注度指数
	getTeleplayMediaList: (data) => {
		return axios({url: '/teleplay/common/media/details',method: 'get',params: data})
	},
	// 获取新媒体指数-电视剧网络搜索指数
	getTeleplayNetworkList: (data) => {
		return axios({url: '/teleplay/common/network/details',method: 'get',params: data})
	}
}
